// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   CommPort.java

package javax.comm;

import java.io.*;

// Referenced classes of package javax.comm:
//            CommPortIdentifier, NoSuchPortException, UnsupportedCommOperationException

public abstract class CommPort
{

    protected String name;

    CommPort()
    {
    }

    public String getName()
    {
        return name;
    }

    @Override
	public String toString()
    {
        return name;
    }

    public abstract InputStream getInputStream()
        throws IOException;

    public abstract OutputStream getOutputStream()
        throws IOException;

    public void close()
    {
        try
        {
            CommPortIdentifier.getPortIdentifier(this).internalClosePort();
            return;
        }
        catch(NoSuchPortException _ex)
        {
            return;
        }
    }

    public abstract void enableReceiveThreshold(int i)
        throws UnsupportedCommOperationException;

    public abstract void disableReceiveThreshold();

    public abstract boolean isReceiveThresholdEnabled();

    public abstract int getReceiveThreshold();

    public abstract void enableReceiveTimeout(int i)
        throws UnsupportedCommOperationException;

    public abstract void disableReceiveTimeout();

    public abstract boolean isReceiveTimeoutEnabled();

    public abstract int getReceiveTimeout();

    public abstract void enableReceiveFraming(int i)
        throws UnsupportedCommOperationException;

    public abstract void disableReceiveFraming();

    public abstract boolean isReceiveFramingEnabled();

    public abstract int getReceiveFramingByte();

    public abstract void setInputBufferSize(int i);

    public abstract int getInputBufferSize();

    public abstract void setOutputBufferSize(int i);

    public abstract int getOutputBufferSize();
}
